/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package proto.model;

import java.util.ArrayList;

/**
 *
 * @author E069605H
 */
public class Model {
    private ArrayList<Aile> data;

    public Model() {
        data = new ArrayList<Aile>();
        data.add(new Aile("CLARCKY", "Biconvexe dissymétrique", 2100, 157, 11.4, -3.1, 0.235, 0.0229, 690, 76));
        data.add(new Aile("SELIG 4083", "Creux", 1959, 121, 8.71, -2.5, 0.381, 0.0186, 635, 49));
        data.add(new Aile("NACA 2415", "Biconvexe dissymétrique", 2310, 184, 13.1, -2.3, 0.136, 0.0246, 812, 92));
        data.add(new Aile("EPPLER 168", "Biconvexe symétrique", 1750, 140, 12.7, 0., 0.01, 0.014, 542, 70));
    }
    
    public void addAile(String ref, String desc, Integer l, Integer h, Double er, Double alpha, Double cz, Double cx, Integer cdpX, Integer cdpY){
        data.add(new Aile(ref, desc, l, h, er, alpha, cz, cx, cdpX, cdpY));
    }
    
    public void delAile(Aile supprAile){
        data.remove(supprAile);
    }
    public void delAile(int supprAileId){
        data.remove(supprAileId);
    }
}
